package com.zxx.pattern.prototypePattern.prototype2_ZZ;

/**
 * 步骤 2
 * 创建扩展了上面抽象类的实体类。
 * @author zxx on 2020/12/21
 */
public class Rectangle2 extends Shape2 {

    public Rectangle2() {
        type = "Rectangle2";
    }

    @Override
    void draw() {
        System.out.println("Inside Rectangle::draw() method.");
    }
}
